<template>
	<view>
		<view class="list">
			<view>
				<image class="thumb" :src="db.avatar" mode="aspectFill"></image>
				<view>
					<view>
						<view>
							<text style="font-size: 40rpx;">{{db.name}}</text>
							<text class="msg">{{db.gender}}</text>
							<text class="msg">{{db.age}}岁</text>
						</view>
					</view>
					<view style="justify-content: flex-start;">
						<text>联系方式：</text>
						<text>{{db.phone}}</text>
					</view>
					<view class="msg">医师简介:</view>
					<view class="msg">{{db.intro}}</view>

				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				db: {}
			};
		},
		onShow() {
			this.$u.get('/health/health_admin').then(res => {
				console.log(res.data);
				this.db = res.data
			})
		}
	}
</script>

<style lang="scss">
	.list {
		>view {
			background-color: #FFFFFF;
			margin: 20rpx;
			padding: 20rpx;
			border-radius: 10rpx;
			display: flex;

			.thumb {
				margin-right: 20rpx;
				width: 120rpx;
				height: 120rpx;
				border-radius: 50%;
				display: block;
			}

			>view {
				width: 100%;

				.msg {
					color: rgba(0, 0, 0, .5);
					font-size: 30rpx;
				}

				>view {
					margin-bottom: 10rpx;
					display: flex;
					justify-content: space-between;
					align-items: flex-end;

					text {
						margin-right: 10rpx;
					}
				}
			}
		}
	}
</style>
